#!/usr/bin/python
#-*- coding: utf-8 -*-

# CPBMI Python Homework 3-4
# Programmed by Seunghwan Kim

# 1)

def blood_pressure(systolic, diastolic):
    if (systolic >= 180 or diastolic >= 110):
        return "Hypertensive Crisis"
    elif (systolic >= 160 or diastolic >= 100):
        return "Stage 2 Hypertension"
    elif (systolic >= 140 or diastolic >= 90):
        return "Stage 1 Hypertension"
    elif (systolic >= 120 or diastolic >= 80):
        return "Prehypertension"
    elif (systolic >= 90 or diastolic >= 60):
        return "Desired"
    else:
        return "Hypotension"

# 2)

patient_bp = {'P1': [89,55], 'P2': [110,77], 'P3': [150,99], 'P4': [160,109]}
patient_list = patient_bp.keys()
patinet_list = patient_list.sort()

for patient in patient_list:
    print patient,
    print blood_pressure(patient_bp[patient][0], patient_bp[patient][1])  